package com.ruoyi.ctcx.mapper;

import java.util.List;
import com.ruoyi.ctcx.domain.TbInsuranceAttachment;
import org.apache.ibatis.annotations.Param;

/**
 * 保险附件Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-25
 */
public interface TbInsuranceAttachmentMapper 
{
    /**
     * 查询保险附件
     * 
     * @param id 保险附件主键
     * @return 保险附件
     */
    public TbInsuranceAttachment selectTbInsuranceAttachmentById(String id);

    /**
     * 查询保险附件列表
     * 
     * @param tbInsuranceAttachment 保险附件
     * @return 保险附件集合
     */
    public List<TbInsuranceAttachment> selectTbInsuranceAttachmentList(TbInsuranceAttachment tbInsuranceAttachment);

    /**
     * 新增保险附件
     * 
     * @param tbInsuranceAttachment 保险附件
     * @return 结果
     */
    public int insertTbInsuranceAttachment(TbInsuranceAttachment tbInsuranceAttachment);

    /**
     * 修改保险附件
     * 
     * @param tbInsuranceAttachment 保险附件
     * @return 结果
     */
    public int updateTbInsuranceAttachment(TbInsuranceAttachment tbInsuranceAttachment);

    /**
     * 删除保险附件
     * 
     * @param id 保险附件主键
     * @return 结果
     */
    public int deleteTbInsuranceAttachmentById(String id);

    /**
     * 批量删除保险附件
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbInsuranceAttachmentByIds(String[] ids);

    List<TbInsuranceAttachment> selectTbInsuranceAttachmentByMainId(@Param("mainId") Long mainId);
}
